<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<title><?php echo ($car["na"]); ?></title>
<link rel="stylesheet" href="/Public/App/css/swiper-3.4.1.min.css">
<link rel="stylesheet" href="/Public/App/css/common.css">
<link rel="stylesheet" href="/Public/App/css/detail.css">
<script src="/Public/App/js/zepto-1.2.0.min.js"></script>
<script src="/Public/App/js/swiper-3.4.1.zepto.min.js"></script>
<script src="/Public/App/js/common.js"></script>
<script src="/Public/App/js/detail.js"></script>
</head>
<body>
<!-- header start -->
<header class="header">
	<div id="detail-slide" class="detail-slide swiper-container">
		<div class="swiper-wrapper">
            <?php $_result=explode(',',$car['imgs']);if(is_array($_result)): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$img): $mod = ($i % 2 );++$i;?><div class="swiper-slide"><a href="/index.php?m=App&c=Index&a=detailbig&carno=<?php echo ($car['carno']); ?>&imgs=<?php echo ($car['imgs']); ?>"><img src="/Public/Uploads/img/<?php echo ($img); ?>_cn.png"></a></div><?php endforeach; endif; else: echo "" ;endif; ?>
		</div>
	</div>
	<a class="header-back" href="javascript:history.back()"></a>
	<p class="header-source">车源号&nbsp;&nbsp;<?php echo ($car["carno"]); ?></p>
	<p class="header-slider-num"><span id="detail-slider-num">1</span>/<?php echo ($imgcount); ?></p>
</header>
<!-- header end -->

<!-- title start -->
<p class="detail-title"><?php echo ($car["na"]); ?></p>
<!-- title end -->

<!-- tag start -->
<ul class="tag clearfix">
    <?php if($car["cw"] == '1' ): ?><li>降价急售</li><?php endif; ?>
    <?php if($car["cf"] == '1' ): ?><li>寄售</li><?php endif; ?>
    <?php if($car["ct"] == '1' ): ?><li>今日超值</li><?php endif; ?>
    <?php if($car["cn"] == '1' ): ?><li>准新车</li><?php endif; ?>
    <?php if($car["cp"] <= '5' ): ?><li>练手车</li><?php endif; ?>
</ul>
<!-- tag end -->

<!-- price start -->
<ul class="price clearfix">
	<li>
		<p class="price-title">报价</p>
		<p class="price-content orange"><?php echo ($car["cp"]); ?>万</p>
		<p class="price-intro">新车<?php echo ($car["newcarprice"]); ?>万</p>
	</li>
	<li>
		<a class="service-show" href="javascript:void(0)">
			<p class="price-title">贷款</p>
			<p class="price-content gray ">每月<?php echo ($car["loany"]); ?>元</p>
			<span class="price-intro">首期<?php echo ($car["loanf"]); ?>万元</span>
		</a>
	</li>
</ul>
<!-- price end -->

<!-- guarantees start -->
<a class="guarantees service-show" href="javascript:void(0)">
	<span>259项检测</span>
	<span>专业陪同过户</span>
    <span>成功购车尊享超值大礼</span>
</a>
<div class="detail-cutline"></div>
<!-- guarantees end -->

<!-- basicinfo start -->
<div class="basicinfo">
	<p class="basicinfo-title">基本信息</p>
	<ul class="basicinfo-list clearfix">
		<li><span>里程：</span><?php echo ($car["runlen"]); ?>万公里</li>
		<li><span>上牌时间：</span><?php echo ($car["licdate"]); ?></li>
		<li><span>牌照归属：</span><?php echo ($car["licplace"]); ?></li>
		<li><span>排放标准：</span><?php echo ($car["emkind"]); ?></li>
		<li><span>变速箱：</span><?php echo ($car["gearbox"]); ?></li>
		<li><span>排量：</span><?php echo ($car["emissions"]); ?>L</li>
	</ul>
	<a class="basicinfo-link" href="/index.php?m=App&c=Index&a=carss&cfid=<?php echo ($car["cfid"]); ?>&na=<?php echo ($car["na"]); ?>&cp=<?php echo ($car["cp"]); ?>">查看车辆详细信息</a>
</div>
<div class="detail-cutline"></div>
<!-- basicinfo end -->

<!-- owner start -->
<div class="owner">
	<div class="owner-header clearfix">
		<a class="owner-btn" href="tel:400-100-1313">咨询看车</a>
	</div>
</div>
<div class="detail-cutline"></div>
<!-- owner end -->

<!-- ad start -->
<ul class="ad clearfix">
    <li>精品车</li>
    <?php $_result=explode(',',$car['light']);if(is_array($_result)): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ld): $mod = ($i % 2 );++$i;?><li><?php echo ($ld); ?></li><?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
<div class="detail-cutline"></div>
<!-- ad end -->

<!-- pic start -->
<div class="pic">
    <?php $_result=explode(',',$car['imgs']);if(is_array($_result)): $k = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$img): $mod = ($k % 2 );++$k;?><img src="/Public/Uploads/img/<?php echo ($img); ?>_cn.png">
        <p><span class="pic-title"><?php echo ($imgnames[$k]); ?></span></p><?php endforeach; endif; else: echo "" ;endif; ?>
</div>
<!-- pic end -->

<!-- guess start -->
<div class="guess">
	<div class="guess-title">
		<p>为您推荐</p>
	</div>
	<ul class="list">
    <?php if(is_array($recommend)): $i = 0; $__LIST__ = $recommend;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$car): $mod = ($i % 2 );++$i;?><li>
            <a class="clearfix" href="/index.php?m=App&c=Index&a=car&id=<?php echo ($car["id"]); ?>">
                <?php $_result=explode(',',$car['imgs']);if(is_array($_result)): $i = 0; $__LIST__ = array_slice($_result,0,1,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vx): $mod = ($i % 2 );++$i;?><img src="/Public/Uploads/img/<?php echo ($vx); ?>_cn.png"><?php endforeach; endif; else: echo "" ;endif; ?>
                <p class="list-title"><?php echo ($car["na"]); ?></p>
                <p class="list-info"><?php echo ($car["ds"]); ?></p>
                <p class="list-price"><?php echo ($car["cp"]); ?>万<s>新车<?php echo ($car["newprice"]); ?>万</s></p>
            </a>
        </li><?php endforeach; endif; else: echo "" ;endif; ?>
     </ul>
	<a class="guess-more" href="/index.php?m=App&c=Index&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d">查看更多&gt;&gt;</a>
</div>
<!-- guess end -->

<!-- footer start -->
    <footer class="footer">
        <ul class="footer-links">
            <li>
                <a href="/index.php?m=App&c=Index&a=appqr">APP下载</a>
            </li>
        </ul>
        <p>58链车专注二手车</p>
        <p>服务电话: <a href="tel:400-100-1313">400-100-1313</a></p>
        <p>售后服务专线: <a href="tel:400-100-1313">400-100-1313</a></p>
    </footer>
    <footer class="footer-company">
        四川伍捌链车汽车销售服务有限公司<br>四川省成都市天府新区天府大道南段2039号和美.海堂中心（天府创客）<br>Copyright 2017 www.58lianche.com All Rights Reserved<br>蜀ICP备16031245<br>
    </footer>
<!-- footer end -->

<!-- btn start -->
<ul class="btn-wrap clearfix">
	<li>
		<a href="tel:400-100-1313">咨询车况</a>
	</li>
	<li>
		<a href="tel:400-100-1313">预约看车</a>
	</li>
</ul>
<!-- btn end -->

<!-- service start -->
<div id="service" class="service">
	<p class="service-header">
		<button id="service-close" class="service-close"></button>
		服务介绍
	</p>
	<ul class="service-main">
		<li>
			<p class="service-title">259项目车况检测</p>
			<p class="service-content">专业检测团队，前后两次深度检测，精选放心车源，杜绝重大事故车、火烧车、水泡车。</p>
		</li>
		<li>
			<p class="service-title">专人陪同办理过户</p>
			<p class="service-content">专员会全程协助完成车辆过户操作。为保障您的合法权益，禁止过户前提前交付车款。</p>
		</li>
		<li>
			<p class="service-title">成功购车尊享超值大礼</p>
			<p class="service-content">车辆过户成功后，即可联系当地服务顾问获得超值大礼。</p>
		</li>
	</ul>
</div>
<!-- service end -->

<button id="totop" class="totop"></button>
</body>
</html>